#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMessageBox>
#include <QFile>
#include <QTimer>
#include <QtMultimedia/QAudio>
#include <QtMultimedia/QAudioInput>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
private slots:
    void on_pushButton_clicked();

private:
    Ui::MainWindow *ui;

    QFile outputFile;   // class member.
    QAudioInput* audio; // class member.

private slots:
    void stopRecording();
};

#endif // MAINWINDOW_H
